/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Randomizer;

import db.DBConnector;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Random;

/**
 *
 * @author Adjell Ian
 */
public class Randomizer {

    private Random die;
    private int result;

    public int GenerateNumber() throws Exception {
        boolean allow = true;
        die = new Random();
        int i = 1;
        try {
            result = die.nextInt(2534000) + 1;
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }

        return result;
    }
}
